package hu.blok1.veilingsite.client.data;

import hu.blok1.veilingsite.shared.Address;
import hu.blok1.veilingsite.shared.User;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("AccountService")
public interface AccountService extends RemoteService {
	User logIn(User user) throws IllegalArgumentException;
	boolean createAccount(User _newUser, Address _newAddress) throws IllegalArgumentException;
	boolean updateUser(User user, Address address) throws IllegalArgumentException;
	boolean changePassword(User userToChangePassword) throws IllegalArgumentException;
}